﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;

namespace lcwb.Shared.Model
{
    public class LoginModel
    {
        [Required(ErrorMessage = "请输入您的用户名")]
        [DisplayName("用户名")]
        public string Username { get; set; }

        [Required(ErrorMessage = "请输入您的密码")]
        [DataType(DataType.Password)]
        [DisplayName("密码")]
        public string Password { get; set; }
        
        [DisplayName("记住我")]
        public bool RememberMe { get; set; } = true;
    }
    public class LoginResponse
    {
        public string Token { get; set; }
        public string Message { get; set; }
    }
}
